/*
 * Th3CallServiceImpl.java
 *
 * Created on April 11, 2008, 3:03 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package cn.edu.ecnu.gis.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import cn.edu.ecnu.gis.client.Th3CallService;

import javax.xml.ws.WebServiceRef;

/**
 *
 * @author meflyup
 */
public class Th3CallServiceImpl extends RemoteServiceServlet implements
        Th3CallService {

   
 private AddService service;
    public String myMethod(String s) {
        // Do something interesting with 's' here on the server.
        try { // Call Web Service Operation
             
        service = new AddService();
            AddServicePortType port = service.getAddServiceSOAP11PortHttp();
            // TODO initialize WS operation arguments here
            java.lang.Double param0 = 0.8;
            java.lang.Double param1 = 0.9;
            // TODO process result here
            java.lang.Double result = port.add(param0, param1);
           return String.valueOf(result);
        } catch (Exception ex) {
            // TODO handle custom exceptions here
            return "error"+ex.toString();
        }  
        
      


   
       

    // return "Server says: " + s;
    }
}
